package com.hdax.mappers;

import com.hdax.entity.Daily;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DailyMapper {
    /**
     * 添加工作日报
     * @return
     */
    int insert(@Param("daily")Daily daily);

    /**
     * 查询
     * @param offset
     * @param limit
     * @param empid 员工id
     * @return
     */
    List<Daily> findAll(@Param("offset")int offset, @Param("limit")int limit,@Param("empid")int empid);

    /**
     * 总条数
     * @return
     */
    int count();
}
